#include<stdio.h>
int main()
{
    //freopen("in.txt","r",stdin);
    unsigned long long  n;
    scanf("%lld",&n);
    printf("%lld",n * (n-1) / 2 * (n-2) / 3 * (n-3) / 4);
}